<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

  <head>
    <title><%= h(yield(:title) || "Untitled") %> | Recetame</title>
	<%= javascript_include_tag :all %>
    <% javascript_tag do %>
      <%= yield :jstemplates %>
    <% end -%>
  </head>
  
  <body>
    <div id="container">
      <%- flash.each do |name, msg| -%>
      <%= content_tag :div, msg, :id => "flash_#{name}" %>
	  <%- end -%>

      <%- if show_title? -%>
        <h1><%=h yield :title %></h1>
      <%- end -%>

      <%= yield %>
    </div>
  </body>

</html>